﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="licensadmin.aspx.cs" Inherits="licensadmin" %>

<asp:Content ID="ContentTop" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="ContentCenter" ContentPlaceHolderID="ContentPlaceHolderCenter" Runat="Server">
    <asp:Panel ID="PnlLicensAdmin" runat="server">
    <asp:ObjectDataSource ID="ObjectDataSourceCustomers" runat="server" 
            DataObjectTypeName="Customer"
            SelectMethod="getCustomers" TypeName="CustomerDataMapperObject" 
            UpdateMethod="updateCustomer"></asp:ObjectDataSource>
<asp:Label ID="LblLicensAdmin" runat="server" ><h2>Administration af licenser</h2></asp:Label>

        <asp:GridView ID="gridCustomers" runat="server" DataSourceID="ObjectDataSourceCustomers" AutoGenerateColumns="False" CssClass="EditLicensTable">
        <Columns>
        <asp:CommandField ShowEditButton="true" HeaderText="Rediger licens" />
        <asp:BoundField datafield="CustomerId"
headertext="Kundenr." ReadOnly="true"/>
        <asp:BoundField datafield="CompanyName"
 headertext="Firmannavn" ReadOnly="true"/>
        <asp:CheckBoxField datafield="ValidLicense" 
headertext="Gyldig licens" />
</Columns>
        </asp:GridView>
        <div class="ButtonHovedMenuDiv">
        <asp:Button ID="btnMainMenu" runat="server" Text="Hovedmenu" CssClass="ButtonHovedmenu" PostBackUrl="~/Default.aspx" />
     </div>
    </asp:Panel>
    
    
</asp:Content>

